import Vuex from 'vuex'
import Vue from 'vue'

Vue.use(Vuex)

const store = new Vuex.Store({
  // state中的数据就是全局共享数据
  state: {
    contractId: '',
    contractType: 1
  },
  mutations: {
    SET_DATA(state, data) {
      state.contractId = data.contractId
      state.contractType = data.contractType
    }
  }
})

export default store
